-- GENERATED SPELL FOR [The North Wind] --


function spell0_30474(pUnit, Event) --@Cyclone,n/a--
pUnit:FullCastSpellOnTarget(61662,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30474', 7500, 1)
end

function spell1_30474(pUnit, Event) --@Gale,n/a--
pUnit:FullCastSpellOnTarget(56861,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30474', 618, 1)
end

function spell2_30474(pUnit, Event) --@Gust of Wind,n/a--
pUnit:FullCastSpellOnTarget(61663,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30474', 625, 1)
end

function Sorts_30474(pUnit, Event)
local choix_sorts_30474 = math.random(0, 2)
if choix_sorts_30474 == 0 then
pUnit:RegisterEvent('spell0_30474', 1, 1)
end
if choix_sorts_30474 == 1 then
pUnit:RegisterEvent('spell1_30474', 1, 1)
end
if choix_sorts_30474 == 2 then
pUnit:RegisterEvent('spell2_30474', 1, 1)
end
end

function mob30474_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30474', math.random(1500, 3000), 1)
end

function mob30474_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30474_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30474_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30474, 1, 'mob30474_Action')
RegisterUnitEvent(30474, 2, 'mob30474_Leave')
RegisterUnitEvent(30474, 3, 'mob30474_Kill')
RegisterUnitEvent(30474, 4, 'mob30474_Die')
